<?
TITRE('Visionnement de batiment	');

ECHO $TID;
       echo ok;
$query="SELECT count(*) FROM sd_encyclopedie WHERE enc_id=$TID AND enc_sorte='b'";
$resultat=mysql_query($query);
$tmp=mysql_fetch_array($resultat) ;
IF ($tmp[0]==0){

echo erreur;
EXIT;
}

$query="SELECT B.batiment_name,B.batiment_icon,B.batiment_temp,B.batiment_id,B.batiment_structure FROM ubatiment AS B,sd_encyclopedie AS E WHERE E.enc_id=$TID AND E.enc_sorte='b' AND B.batiment_id=E.enc_id";

$resultat=mysql_query($query);
 $tmp=mysql_fetch_array($resultat) ;

?>


<table width="95%" align="center" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td CLASS="TDM_HG">&nbsp;</td>
    <td CLASS="TDM_HH">&nbsp;</td>
    <td CLASS="TDM_HD">&nbsp;</td>
  </tr>
  <tr>
    <td CLASS="TDM_GG">&nbsp;</td>
    <td CLASS="TD2">

 <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="2">Nom</td>
  </tr>
  <tr>
    <td rowspan="10" valign="top" width="200">
<table width="200" height="200" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td><CENTER><img src="images/batiments/<? echo $tmp[1]; ?>"></CENTER></td>
        </tr>
      </table></td>
        <td CLASS="TITRE_NOIR_P">Nom:</td>
    <td><font CLASS="TEXT_NOIR_P"><? echo $tmp[0]; ?></font></td>
  </tr>
  <tr>
   <td CLASS="TITRE_NOIR_P"><font CLASS="TITRE_NOIR_P">Construction:</font></td>
    <td><font CLASS="TEXT_NOIR_P"><? echo $tmp[2]; ?></td>
  </tr>
  <tr>
   <td CLASS="TITRE_NOIR_P" ><font CLASS="TITRE_NOIR_P">Structure:</font></td>
    <td><font CLASS="TEXT_NOIR_P"><? echo $tmp[4]; ?></td>
  </tr>
  <tr>
  <td CLASS="TITRE_NOIR_P" ><font CLASS="TITRE_NOIR_P">Maximum:</font></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td CLASS="TITRE_NOIR_P" ><font CLASS="TITRE_NOIR_P">Classe:</font></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>

    <tr>
   <td CLASS="TITRE_NOIR_P" ><font CLASS="TITRE_NOIR_P">Structure:</font></td>
    <td><font CLASS="TEXT_NOIR_P"><? echo $tmp[4]; ?></td>
  </tr>
   <tr>
   <td CLASS="TITRE_NOIR_P" ><font CLASS="TITRE_NOIR_P">Structure:</font></td>
    <td><font CLASS="TEXT_NOIR_P"><? echo $tmp[4]; ?></td>
  </tr>
   <tr>
   <td CLASS="TITRE_NOIR_P" ><font CLASS="TITRE_NOIR_P">Structure:</font></td>
    <td><font CLASS="TEXT_NOIR_P"><? echo $tmp[4]; ?></td>
  </tr>

</table>



    </td>
    <td CLASS="TDM_DD">&nbsp;</td>
  </tr>
  <tr>
    <td CLASS="TDM_BG">&nbsp;</td>
    <td CLASS="TDM_BB">&nbsp;</td>
    <td CLASS="TDM_BD">&nbsp;</td>
  </tr>
</table>


<fieldset CLASS="fieldset1" width="50%">
                        <legend> <font CLASS="TITRE_fieldset1">Option de fen&ecirc;tre</font>
                        </legend>
                       ess
                        </fieldset>
